local sh_win=[=[
set -x

mkdir -p $DEM_ROOT/src
rm -rf $DEM_ROOT/src/zlib-1.2.5
tar xzf /download/zlib-1.2.5.tar.gz -C $DEM_ROOT/src
cd $DEM_ROOT/src/zlib-1.2.5
INCLUDE_PATH=$DEM_ROOT/host/$DEM_TARGET/include LIBRARY_PATH=$DEM_ROOT/host/$DEM_TARGET/lib BINARY_PATH=$DEM_ROOT/host/$DEM_TARGET/bin make -f win32/Makefile.gcc install
]=]
srcPackage {
    name="zlib",
    version="1.2.5",
    url={
        "http://zlib.net/zlib-1.2.5.tar.gz",
    },
    sh_msys=sh_win,
    ["sh_i686-mingw32"]=sh_win,
    ["sh_mingw-w64"]=sh_win,

    sh=[=[
set -x
mkdir -p $DEM_ROOT/src
rm -rf $DEM_ROOT/src/zlib-1.2.5
tar xzf /download/zlib-1.2.5.tar.gz -C $DEM_ROOT/src
cd $DEM_ROOT/src/zlib-1.2.5
./configure --prefix=$DEM_ROOT/host/$DEM_TARGET
make install
    ]=],
}
